package net.oschina.app.fragment.me.messagecenterfragment;

import net.oschina.app.adapter.me.messageAdapter.LeaveMessageListAdapter;
import net.oschina.app.base.BaseListAdapter;
import net.oschina.app.base.BaseListFragment;
import net.oschina.app.bean2.MessagesBean;
import net.oschina.app.protocol.AccessProtocol;
import net.oschina.app.protocol.me.messagecenterprotocol.LeaveMessageProtocol;

import java.util.List;

/**
 * Created by Vashon on 2017/1/12.
 */

public class LeaveMessageFragment extends BaseListFragment {

    @Override
    protected List parseData(Object body) {

        return ((MessagesBean)body).getMessages();
    }

    @Override
    protected AccessProtocol getProtocol() {
        return new LeaveMessageProtocol();
    }

    @Override
    protected BaseListAdapter getAdapter() {
        return new LeaveMessageListAdapter();
    }
}
